﻿using System.Configuration;
using MySql.Data.MySqlClient;

namespace MiniOrderSystem.Data.Dapper
{
    public class DapperService
    {

        public static MySqlConnection MySqlConnection()
        {
            string mysqlConnectionString = ConfigurationManager.ConnectionStrings["MysqlDBConnection"].ToString();

            var connection = new MySqlConnection(mysqlConnectionString);

            connection.Open();

            return connection;
        }
    }
}